package com.guangyunl.d_if;

import java.util.Scanner;

public class Demo03IfElse {
    public static void main(String[] args) {
        // 创建对象
        Scanner sc = new Scanner(System.in);
        System.out.print("请输入两个整数: ");
        int data1 = sc.nextInt();
        int data2 = sc.nextInt();
        System.out.println("data1 = " + data1);
        System.out.println("data2 = " + data2);
        if (data1 == data2){
            System.out.println("两个整数相等");
        }else{
            System.out.println("两个整数不相等");
        }
    }
}
